import request from '@/utils/request'
export function addAttachmentType(data) {
  return request({
    url: '/attachmentType',
    method: 'post',
    data: data
  })
}
export function getAttachmentTypeListByCourse(courseId) {
  return request({
    url: '/attachmentType/course/'+courseId,
    method: 'get',
  })
}
export function deleteAttachmentType(id) {
  return request({
    url: '/attachmentType/'+id,
    method: 'delete',
  })
}
export function editAttachmentType(data) {
  return request({
    url: '/attachmentType',
    method: 'put',
    data: data
  })
}
//获取单个课程
export function getAttachmentType(id) {
  return request({
    url: '/attachmentType/' + id,
    method: 'get'
  })
}



